﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Colonisator.Classes
{
    /// <summary>
    /// Île colonisable
    /// </summary>
    public class IleColonisable : Ile
    {
        public NiveauProtection ProtectionIle { get; set; }
        
        public IleColonisable() : base()
        {
            EstIleColonisable = true;
            ProtectionIle = NiveauProtection.Aucune;
        }
        
        #region Actions

        public void Colonisation(TableDeBord elementsDeposes, NiveauProtection niveauApplique)
        {
            this.Presence.MAJTableDeBordSelonDelta(elementsDeposes, true);
            this.ProtectionIle = niveauApplique;
        }

        #endregion

    }

    public enum NiveauProtection
    {
        Aucune = 0,
        Bunker = 1,
        Fort = 2
    }
}
